#ifndef _MAP_H_
#define _MAP_H_

/**
 * \file     map.h
 * \brief    map
 * \author   fatma.jaafar@esprit.tn
 * \version  0.5
 * \date     first release 
 *
 * This file describe public zombie structure and functions.
 *
 * ----------------------------------------
 * Copyright (C) 2014 FATMA JAAFAR
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

/**
 * \defgroup GAME GAME
 * \{ */

/**
 * \defgroup MENU MENU
 * \{ */


/* =================================80======================================= */
/*                               INCLUDES                                     */
/* =================================80======================================= */

#include "structures.h"

 /* =================================80======================================= */
/*                           STRUCTURE GLOBAL                                 */
/* =================================80======================================= */

/**
 * \brief definie une variable globale de gestion du jeu.
 */
Gestion jeu;
/**
 * \brief definie une variable globale de gestion du background.
 */
 Map map;
/**
 * \brief definie une variable globale de gestion de l'entite.
 */
GameObject *entity;
/**
 * \brief definie une variable globale de gestion du hero.
 */
GameObject player;
/* =================================80======================================= */
/*                               FUNCTIONS                                    */
/* =================================80======================================= */

/**
 *
 * \brief   afficher une image.
 *
 * \param   SDL_Surface *                       :nom de la surface.
            int x                             : position x 
            int y                             : position y
            
 * \return  void
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */

void drawImage(SDL_Surface *, int, int);
/**
 *
 * \brief   gestion de collision avec le background.
 *
 * \param   GameObject *entity
 * \return  void
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */ 
void mapCollision(GameObject *entity);
/**
 *
 * \brief   charger une image.
 *
 * \param   char *name                      :nom de l'image
 * \return  void
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */ 
SDL_Surface *loadImage(char *name);
/**
 *
 * \brief   initialiser le Hero.
 *
 * \param   void
 * \return  void
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */ 
void initializePlayer(void);
/**
 *
 * \brief   initialiser les monstres.
 *
 * \param   void
 * \return  void
 * \author  fatma.jaafar@esprit.tn
 * \date    
 */ 
void initializeMonster(int x, int y);

// MAP
/** \} */
// GAME
/** \} */

#endif /* _MAP_H_ */
 